package com.my.service;

import com.my.bean.ResultPage;
import com.my.bean.User;
import com.baomidou.mybatisplus.service.IService;
import com.my.bean.VoPage;

import javax.servlet.http.HttpSession;
import java.sql.SQLException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 张子艺
 * @since 2018-08-25
 */
public interface UserService extends IService<User> {
	String login(User user, HttpSession session);
	public ResultPage<User> selectMyPage( VoPage voPage,User user);
	  ResultPage<User> findUserAndRole( VoPage voPage,User user,Long areaid,boolean admin);
	//添加用户
	String insertUser(String param);

	//删除用户和角色关联
	String deleteUser(Long id) throws SQLException;

	//修改
//	boolean updateAreaId();

}
